package com.ap.generator.rtp;

import com.ap.core.cxf.jaxb.rtp.AbstractRTPDetailTypeGeneratorBuilder;
import com.ap.datagen.core.GeneratorHelper;

import static com.ap.datagen.core.GeneratorHelper.buildA;
import static com.ap.datagen.core.GeneratorHelper.generateList;
import static com.ap.datagen.core.Nullable.nullable;

/**
 * 
 * @author Siva.Pochana
 *
 */
public class RTPDetailTypeGeneratorBuilder extends
		AbstractRTPDetailTypeGeneratorBuilder {

	/**
	 * setupDefaults()
	 */
	@Override
	public void setupDefaults() {
		this.productGenerator = nullable(generateList(buildA(ProductTypeGeneratorBuilder.getProductTypeGenerator()), GeneratorHelper.fixedValueGenerator(3)));
	}

	/**
	 * 
	 * @return
	 */
	public static RTPDetailTypeGeneratorBuilder getRTPDetailTypeGenerator() {
		return new RTPDetailTypeGeneratorBuilder();
	}
}
